package util.exceptionTest;

import lombok.Data;

/**
 * @Author liw
 * @Date 2021/3/17 13:46
 * @Version 1.0
 */
@Data
public class Pair<F, S> {

    private final F fst;
    private final S snd;

    private Pair(F fst, S snd){
        this.fst =  fst;
        this.snd= snd;
    }
    static <F, S> Pair<F, S> of(F fst, S snd){
        return new Pair<>(fst, snd);
    }

    @Override
    public String toString() {
        return "Pair{" +
                "fst=" + fst +
                ", snd=" + snd +
                '}';
    }
}